package com.pgytesting.secondhandcar.service;

import com.pgytesting.secondhandcar.model.SupplementaryBasicInformation;
import com.pgytesting.secondhandcar.vo.ResponseMessage;

import java.util.List;
import java.util.Map;

/**
 * 补充基本信息(SupplementaryBasicInformation)表服务接口
 *
 * @author makejava
 * @since 2019-08-12 18:55:58
 */
public interface SupplementaryBasicInformationService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SupplementaryBasicInformation queryById(String id);

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit 查询条数
     * @return 对象列表
     */
    List<SupplementaryBasicInformation> queryAllByLimit(int offset, int limit);
    
    /**
     * 条件查询多条数据
     *
     * @param supplementaryBasicInformation 实例对象
     * @return 对象列表
     */
    List<SupplementaryBasicInformation> queryAll(SupplementaryBasicInformation supplementaryBasicInformation);

    /**
     * 新增数据
     *
     * @param supplementaryBasicInformation 实例对象
     * @return 实例对象
     * @throws Exception
     */
    ResponseMessage insert(SupplementaryBasicInformation supplementaryBasicInformation) throws Exception;

    /**
     * 修改数据
     *
     * @param supplementaryBasicInformation 实例对象
     * @return 实例对象
     */
    SupplementaryBasicInformation update(SupplementaryBasicInformation supplementaryBasicInformation);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(String id);

    /**
     * 查询用户补充的基本信息
     * @param supplementaryBasicInformation
     * @return
     */
    Map<String,Object> querySupplementaryInformation(SupplementaryBasicInformation supplementaryBasicInformation);
}